<h3>Lista</h3>
<?php if (count($this->tracks) == 0) { ?>
	<p>Trochę pusto tutaj...</p>
<?php } else { ?>
<ul>
	<?php foreach ($this->tracks as $track) { ?>
		<li>
			<a href="<?php echo $this->url(array('controller' => 'gps', 'action' => 'show', 'track' => $track->guid), 'default', true) ?>"><?php echo $track->name ?></a>
			[<a href="<?php echo $this->url(array('controller' => 'gps', 'action' => 'stats', 'track' => $track->guid), 'default', true) ?>">Statystyka</a>]
			dodano <?php echo date('Y-m-d H:m:i', $track->datetime) ?>
		</li>
	<?php } ?>
</ul>
<?php echo $this->tracks ?>
<?php } ?>

<?php echo $this->form ?>